package com.diandi.messages.enums;


/**
 * Created by Administrator on 2017/7/3.
 */
public enum MerchantNo {
    理财("P2017070300001", "理财"),
    秒借("P2017070300002","秒借"),
    ;
    private String number;
    private String desc;

    MerchantNo(String number, String desc) {
        this.number = number;
        this.desc = desc;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static MerchantNo getEmun(String number){
        for (MerchantNo merchantNo : MerchantNo.values()) {
            if(merchantNo.getNumber().equals(number)){
                return merchantNo;
            }
        }
        return null;
    }
}
